package com.kfm.company.service.impl;

import com.kfm.company.mapper.DeptMapper;
import com.kfm.company.model.Dept;
import com.kfm.company.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptMapper mapper;
    @Override
    public List<Dept> findAll() {
        return mapper.selectAll();
    }
}
